home *** CD-ROM | disk | FTP | other *** search
- // Summer'93 : Clipper5 source
- //
- // Function to check that the test value is between the
- // Limits specified. The function is used when a 'PUBLIC' get
- // with a 'range' clause is found.
- // You may substitute any function, of course.
-
- function CheckRange( xTestVal, xLoLimit, xHiLimit )
- local lRangeOK
-
- if xHiLimit <= xLoLimit
- lRangeOk := ((xTestVal >= xLoLimit) .and. (xTestVal <= xHiLimit))
- else
- lRangeOk := ((xTestVal >= xHiLimit) .and. (xTestVal <= xLoLimit))
- endif
-
- return lRangeOK
-
-
-